package com.dragon.modules.yuegou.query.member;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.member.PtTurntablePrizeStoreEntity;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;

/**
 * 大转盘奖品库存表 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2022-08-12 16:10:33
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class PtTurntablePrizeStoreQuery extends PtTurntablePrizeStoreEntity implements Query<PtTurntablePrizeStoreEntity> {

    /** id查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 大转盘ID查询条件 */
	@JsonUnwrapped(prefix = "pointTurntableId")
	private Condition<String> pointTurntableIdCondition;

    /** 奖品ID查询条件 */
	@JsonUnwrapped(prefix = "prizeId")
	private Condition<String> prizeIdCondition;

    /** 商品id查询条件 */
	@JsonUnwrapped(prefix = "goodsId")
	private Condition<String> goodsIdCondition;

    /** 奖品库存数量查询条件 */
	@JsonUnwrapped(prefix = "storeCount")
	private Condition<Integer> storeCountCondition;

    /** 现有库存数量查询条件 */
	@JsonUnwrapped(prefix = "currentCount")
	private Condition<Integer> currentCountCondition;

    /** 获取时间/创建时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdBy")
	private Condition<String> createdByCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedBy")
	private Condition<String> modifiedByCondition;

    /** 删除 0-未删除；1-已删除查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "delTime")
	private Condition<LocalDateTime> delTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "delBy")
	private Condition<String> delByCondition;

    /** 版本号 修改库存的时候用到查询条件 */
	@JsonUnwrapped(prefix = "version")
	private Condition<Integer> versionCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public PtTurntablePrizeStoreQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public PtTurntablePrizeStoreQuery(PtTurntablePrizeStoreEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public PtTurntablePrizeStoreQuery(PtTurntablePrizeStoreQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.pointTurntableIdCondition != null) {
			this.pointTurntableIdCondition = other.pointTurntableIdCondition.copy();
		}
		if(other.prizeIdCondition != null) {
			this.prizeIdCondition = other.prizeIdCondition.copy();
		}
		if(other.goodsIdCondition != null) {
			this.goodsIdCondition = other.goodsIdCondition.copy();
		}
		if(other.storeCountCondition != null) {
			this.storeCountCondition = other.storeCountCondition.copy();
		}
		if(other.currentCountCondition != null) {
			this.currentCountCondition = other.currentCountCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.createdByCondition != null) {
			this.createdByCondition = other.createdByCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.modifiedByCondition != null) {
			this.modifiedByCondition = other.modifiedByCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
		if(other.delTimeCondition != null) {
			this.delTimeCondition = other.delTimeCondition.copy();
		}
		if(other.delByCondition != null) {
			this.delByCondition = other.delByCondition.copy();
		}
		if(other.versionCondition != null) {
			this.versionCondition = other.versionCondition.copy();
		}
	}

	@Override
	public QueryWrapper<PtTurntablePrizeStoreEntity> toQueryWrapper() {
		QueryWrapper<PtTurntablePrizeStoreEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (pointTurntableIdCondition != null) {
			pointTurntableIdCondition.toWrapper(wrapper, COL_POINT_TURNTABLE_ID);
		}
		if (prizeIdCondition != null) {
			prizeIdCondition.toWrapper(wrapper, COL_PRIZE_ID);
		}
		if (goodsIdCondition != null) {
			goodsIdCondition.toWrapper(wrapper, COL_GOODS_ID);
		}
		if (storeCountCondition != null) {
			storeCountCondition.toWrapper(wrapper, COL_STORE_COUNT);
		}
		if (currentCountCondition != null) {
			currentCountCondition.toWrapper(wrapper, COL_CURRENT_COUNT);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (createdByCondition != null) {
			createdByCondition.toWrapper(wrapper, COL_CREATED_BY);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (modifiedByCondition != null) {
			modifiedByCondition.toWrapper(wrapper, COL_MODIFIED_BY);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		if (delTimeCondition != null) {
			delTimeCondition.toWrapper(wrapper, COL_DEL_TIME);
		}
		if (delByCondition != null) {
			delByCondition.toWrapper(wrapper, COL_DEL_BY);
		}
		if (versionCondition != null) {
			versionCondition.toWrapper(wrapper, COL_VERSION);
		}
		return wrapper;
	}

	/**
	 * 构造并返回id查询条件
	 * 
	 * @return idCondition id查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取id查询条件
	 * 
	 * @return idCondition id查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置id查询条件
	 * 
	 * @param idCondition id查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回大转盘ID查询条件
	 * 
	 * @return pointTurntableIdCondition 大转盘ID查询条件
	 */
	public Condition<String> pointTurntableId() {
		this.pointTurntableIdCondition = new Condition<>();
		return this.pointTurntableIdCondition;
	}
	
	/**
	 * 获取大转盘ID查询条件
	 * 
	 * @return pointTurntableIdCondition 大转盘ID查询条件
	 */
	public Condition<String> getPointTurntableIdCondition() {
		return pointTurntableIdCondition;
	}

	/**
	 * 设置大转盘ID查询条件
	 * 
	 * @param pointTurntableIdCondition 大转盘ID查询条件
	 */
	public void setPointTurntableIdCondition(Condition<String> pointTurntableIdCondition) {
		this.pointTurntableIdCondition = pointTurntableIdCondition;
	}

	/**
	 * 构造并返回奖品ID查询条件
	 * 
	 * @return prizeIdCondition 奖品ID查询条件
	 */
	public Condition<String> prizeId() {
		this.prizeIdCondition = new Condition<>();
		return this.prizeIdCondition;
	}
	
	/**
	 * 获取奖品ID查询条件
	 * 
	 * @return prizeIdCondition 奖品ID查询条件
	 */
	public Condition<String> getPrizeIdCondition() {
		return prizeIdCondition;
	}

	/**
	 * 设置奖品ID查询条件
	 * 
	 * @param prizeIdCondition 奖品ID查询条件
	 */
	public void setPrizeIdCondition(Condition<String> prizeIdCondition) {
		this.prizeIdCondition = prizeIdCondition;
	}

	/**
	 * 构造并返回商品id查询条件
	 * 
	 * @return goodsIdCondition 商品id查询条件
	 */
	public Condition<String> goodsId() {
		this.goodsIdCondition = new Condition<>();
		return this.goodsIdCondition;
	}
	
	/**
	 * 获取商品id查询条件
	 * 
	 * @return goodsIdCondition 商品id查询条件
	 */
	public Condition<String> getGoodsIdCondition() {
		return goodsIdCondition;
	}

	/**
	 * 设置商品id查询条件
	 * 
	 * @param goodsIdCondition 商品id查询条件
	 */
	public void setGoodsIdCondition(Condition<String> goodsIdCondition) {
		this.goodsIdCondition = goodsIdCondition;
	}

	/**
	 * 构造并返回奖品库存数量查询条件
	 * 
	 * @return storeCountCondition 奖品库存数量查询条件
	 */
	public Condition<Integer> storeCount() {
		this.storeCountCondition = new Condition<>();
		return this.storeCountCondition;
	}
	
	/**
	 * 获取奖品库存数量查询条件
	 * 
	 * @return storeCountCondition 奖品库存数量查询条件
	 */
	public Condition<Integer> getStoreCountCondition() {
		return storeCountCondition;
	}

	/**
	 * 设置奖品库存数量查询条件
	 * 
	 * @param storeCountCondition 奖品库存数量查询条件
	 */
	public void setStoreCountCondition(Condition<Integer> storeCountCondition) {
		this.storeCountCondition = storeCountCondition;
	}

	/**
	 * 构造并返回现有库存数量查询条件
	 * 
	 * @return currentCountCondition 现有库存数量查询条件
	 */
	public Condition<Integer> currentCount() {
		this.currentCountCondition = new Condition<>();
		return this.currentCountCondition;
	}
	
	/**
	 * 获取现有库存数量查询条件
	 * 
	 * @return currentCountCondition 现有库存数量查询条件
	 */
	public Condition<Integer> getCurrentCountCondition() {
		return currentCountCondition;
	}

	/**
	 * 设置现有库存数量查询条件
	 * 
	 * @param currentCountCondition 现有库存数量查询条件
	 */
	public void setCurrentCountCondition(Condition<Integer> currentCountCondition) {
		this.currentCountCondition = currentCountCondition;
	}

	/**
	 * 构造并返回获取时间/创建时间查询条件
	 * 
	 * @return createdTimeCondition 获取时间/创建时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取获取时间/创建时间查询条件
	 * 
	 * @return createdTimeCondition 获取时间/创建时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置获取时间/创建时间查询条件
	 * 
	 * @param createdTimeCondition 获取时间/创建时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdByCondition 查询条件
	 */
	public Condition<String> createdBy() {
		this.createdByCondition = new Condition<>();
		return this.createdByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdByCondition 查询条件
	 */
	public Condition<String> getCreatedByCondition() {
		return createdByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdByCondition 查询条件
	 */
	public void setCreatedByCondition(Condition<String> createdByCondition) {
		this.createdByCondition = createdByCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedTimeCondition 查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedByCondition 查询条件
	 */
	public Condition<String> modifiedBy() {
		this.modifiedByCondition = new Condition<>();
		return this.modifiedByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedByCondition 查询条件
	 */
	public Condition<String> getModifiedByCondition() {
		return modifiedByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedByCondition 查询条件
	 */
	public void setModifiedByCondition(Condition<String> modifiedByCondition) {
		this.modifiedByCondition = modifiedByCondition;
	}

	/**
	 * 构造并返回删除 0-未删除；1-已删除查询条件
	 * 
	 * @return delCondition 删除 0-未删除；1-已删除查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取删除 0-未删除；1-已删除查询条件
	 * 
	 * @return delCondition 删除 0-未删除；1-已删除查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置删除 0-未删除；1-已删除查询条件
	 * 
	 * @param delCondition 删除 0-未删除；1-已删除查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return delTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> delTime() {
		this.delTimeCondition = new Condition<>();
		return this.delTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return delTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getDelTimeCondition() {
		return delTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param delTimeCondition 查询条件
	 */
	public void setDelTimeCondition(Condition<LocalDateTime> delTimeCondition) {
		this.delTimeCondition = delTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return delByCondition 查询条件
	 */
	public Condition<String> delBy() {
		this.delByCondition = new Condition<>();
		return this.delByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return delByCondition 查询条件
	 */
	public Condition<String> getDelByCondition() {
		return delByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param delByCondition 查询条件
	 */
	public void setDelByCondition(Condition<String> delByCondition) {
		this.delByCondition = delByCondition;
	}

	/**
	 * 构造并返回版本号 修改库存的时候用到查询条件
	 * 
	 * @return versionCondition 版本号 修改库存的时候用到查询条件
	 */
	public Condition<Integer> version() {
		this.versionCondition = new Condition<>();
		return this.versionCondition;
	}
	
	/**
	 * 获取版本号 修改库存的时候用到查询条件
	 * 
	 * @return versionCondition 版本号 修改库存的时候用到查询条件
	 */
	public Condition<Integer> getVersionCondition() {
		return versionCondition;
	}

	/**
	 * 设置版本号 修改库存的时候用到查询条件
	 * 
	 * @param versionCondition 版本号 修改库存的时候用到查询条件
	 */
	public void setVersionCondition(Condition<Integer> versionCondition) {
		this.versionCondition = versionCondition;
	}

}
